package com.cjw.demo.controller;


import com.cjw.demo.entity.TbHouseInfo;
import com.cjw.demo.entity.TbRoomReservation;
import com.cjw.demo.service.ITbHouseInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author cjw
 * @since 2021-11-18
 */
@RestController
@RequestMapping("/info")
public class TbHouseInfoController {
    @Autowired
    ITbHouseInfoService iTbHouseInfoService;

    @RequestMapping("updatas")
    public void houseupdata(@RequestBody TbHouseInfo tbHouseInfo){
        List<String> str = tbHouseInfo.getStr();
        System.err.println(str);
        iTbHouseInfoService.houseupdata(tbHouseInfo);
    }
}
